import styled from "styled-components";

// 中间导航
export const NavStyle = styled.div`
  height: 0.8rem;
  width: 100%;
  display: flex;
  background-color: #fff;
  justify-content: space-around;
  align-items: center;
  > div {
    height: 100%;
    width: 25%;
    img {
      width: 36px;
      margin: 0 0.35rem;
      padding-top: 15px;
    }
    span {
      display: block;
      text-align: center;
      color: #666;
      font-size: 0.14rem;
      margin-top: 5px;
    }
  }
`;

// 热门话题
export const HotStyle = styled.div`
  p {
    color: #222;
    font-size: 14px;
    padding: 10px;
  }
  margin-top: 0.1rem;
  height: 1.3rem;
  background-color: #fff;
  font-weight: normal;
  margin-bottom: 10px;
  div {
    height: 0.8rem;
    width: 100%;
    float: left;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    display: -webkit-box;
    white-space: nowrap;
    div {
      height: 100%;
      width: 1.35rem;
      overflow: hidden;
      position: relative;
      margin-right: 0.05rem;

      img {
        width: 100%;
        height: 100%;
      }
      p {
        font-size: 0.16rem;
        word-wrap: break-word;
        color: #fff;
        height: 100%;
        width: 100%;
        display: block;
        text-align: center;
        line-height: 70px;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.2);
      }
    }
  }
`;

// 列表导航栏
export const Listnew = styled.div`
  height: 100%;
  .link {
    height: 60px;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
    a {
      color: #333;
      &.active {
        padding: 10px 0;
        border-bottom: 2px solid #ff4338;
        color: #ff4338;
      }
    }
  }
`;

// 列表导航栏
export const ItemListStyle = styled.div`
  height: 300px;
  width: 100%;
  position: relative;
  .avatar {
    height: 50px;
    width: 50px;
    position: absolute;
    top: 10px;
    left: 10px;
    img {
      height: 100%;
      border-radius: 50%;
    }
  }
  p {
    position: absolute;
    left: 70px;
    top: 10px;
    color: #444;
  }
  time {
    position: absolute;
    left: 70px;
    top: 30px;
    color: #999;
    font-size: 12px;
  }
  span {
    display: block;
    width: 325px;
    position: absolute;
    left: 70px;
    top: 50px;
    color: #444;
    font-size: 16px;
  }
  .img {
    width: 325px;
    position: absolute;
    top: 100px;
    left: 70px;
    img {
      width: 325px;
    }
  }
  .bottomlove {
    height: 40px;
    width: 70px;
    position: absolute;
    left: 70px;
    bottom: 4px;
    img {
      width: 20px;
    }
    i {
      margin-left: 5px;
      font-size: 16px;
      color: #a4a4a4;
      line-height: 40px;
    }
  }
  .message {
    height: 40px;
    width: 70px;
    position: absolute;
    left: 140px;
    bottom: 4px;
    img {
      width: 20px;
    }
    i {
      margin-left: 5px;
      font-size: 16px;
      color: #a4a4a4;
      line-height: 40px;
    }
  }
`;
